﻿namespace PoliticalClassifier.Support
{
    /// <summary>
    /// IDataSourceLoadError represents an issue with the data source that is fatal.
    /// </summary>
    public interface IDataSourceLoadError
    {
        /// <summary>
        /// Gets the type of error.
        /// </summary>
        DataSourceLoadErrorType ErrorType { get; }

        /// <summary>
        /// Gets the human-readable message describing the error.
        /// </summary>
        /// <returns>The error message.</returns>
        string GetErrorMessage();
    }
}
